package com.itcat.service;

import com.itcat.common.CommonPage;
import com.itcat.mysql.pojo.UmsMenu;
import com.itcat.mysql.pojo.UmsResource;
import com.itcat.mysql.pojo.UmsRole;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * [一句话描述该类的功能]
 *
 * @author : [Cr Mr]
 * @version : [v1.0]
 * @date : [2022/4/2 12:41]
 */
@Service
public interface UmsRoleService {
    List<UmsRole> listAll();

    CommonPage<UmsRole> getPage(String keyword, Integer pageNum, Integer pageSize);

    List<UmsMenu> listMenu(Long roleId);

    void create(UmsRole umsRole);

    void allocMenu(Long roleId, List<Long> menuIds);

    void allocResource(Long roleId, List<Long> resourceIds);

    void delete(List<Long> ids);

    List<UmsResource> listResource(Long roleId);

    void update(Long id, UmsRole umsRole);

    void updateStatus(Long id, Integer status);
}
